package main

import (
	"flag"
	"log"
)

func main() {
	flag.Parse() // will be used latter

	cmd := flag.Args()[0]

	switch cmd {
	case "gen-cert":
		generateX509Certificate(flag.Args()[1], flag.Args()[2], "cert.pem", "key.pem")
		break
	default:
		log.Fatalf("Invalid command %q", flag.Args()[0])
		break
	}
}
